<?php
$account = v('account');
$status = v('status');
$rawStatuses = v('rawStatuses');
?>
<div class="span3" style="background-color:#EEE">
	<h3>Welcome</h3>
	<div>
		<label>
			<a href="http://renren.com/<?php p($account->getInternalId())?>">
				<img style="width:15px height:15px" src="<?php p($account->getAvatar())?>"/>
				<?php p($account->getScreenName())?>
			</a>
		<label>
		<label>Friends:<?php p($account->getFriendsCount())?> Statuses:<?php p($account->getStatusesCount())?></label>
	</div>
	<form id="post_form" method="post" enctype="multipart/form-data" action="<?php p(url('api/json/Account.postStatus')); ?>" >
		Message
		<textarea id="t_post_content" name="content"></textarea>
		<br>
		Picture (optional)
		<input id="i_post_picture" type="file" name="picture"/>
		Link URL (optional)
		<input id="i_post_link" type="text" name="link"/>
		<input id="efId" name="efId" type="hidden" value="222" />
		<input id="state" name="state" type="hidden" value="demo_cn" />
		<input id="socialNetwork" name="socialNetwork" type="hidden" value="renren" />
		<a id="post" class="btn">Post</a>
	</form>
	<div id="timeline" style="display:none; text-align:center;">
	</div>
</div>
<div class="span8" style="background-color:#EEE">
	<a id="update_status" class="btn">Update</a>
	<div class="row-fluid">
		<div class="span1">
			Canal
		</div>
		<div class="span2">
			Date
		</div>
		<div class="span6">
			Message / Operation code
		</div>
		<div class="span3">
			Stats
		</div>
	</div>
	<?php
		foreach($rawStatuses as $rawStatus)
		{
			$status->reset();
			$status->loadFromRawObject($rawStatus);
			render('[Snsfg]/Html/Snippet.Report.html', array('status' => $status, 'account' => $account, 'baseOfProfile' => 'http://renren.com/'));
		}
	?>
</div>